<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-md-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--右侧内容栏start-->
  <div class="col-md-10 content"> 
 
	<!-- 标题栏 -->
         <ul class="nav nav-tabs">
           <li><a href="{:U('Student/index')}"><i class="icon icon-th-list"> </i>学生选课</a></li>
           <li class="active"><a href="{:U('Student/index0')}"><i class="icon-th-list"> </i>未报名学生</a></li>    
           <li><a href="{:U('Student/classscore')}"><i class="icon icon-calendar"> </i>学生成绩</a></li>           
           <li><a href="{:U('Student/outstand')}"><i class="icon icon-calendar"> </i>优秀学员</a></li>
           <li><a href="{:U('Student/updateScoredata')}"><i class="icon icon-th-large"> </i>学期成绩汇总</a></li>
       </ul> 
        
        <h1 style="color:#CC4444"> &nbsp; &nbsp;未选课学生  [{$totalPageCount}人] </h1>
      
       <div class="box-border">
        
         <!-- 表单按钮start -->
         <div class="right_box"> 
	        <div class="col-md-3">
               <form method='post' id="form1" name="form1" action=""  >
                <select class="form-control form-horizontal" name="class" id="class" onChange="this.form.submit()">
                     <option >{$_aClass}</option>
                     <option>所有班级</option>
                       <volist name="_class" id="vo">                       
                        <option>{$vo.bj_name}</option>
                        </volist>
                 </select>
                </form>
            </div>          
			<div class="col-md-9">
	            <a class="btn btn-danger" href="{:U('Student/add')}">新 增</a>
	            <button class="btn btn-primary ajax-post" url="{:U('Student/searchStudent')}" >学生查询</button> 
	            <a class="btn btn-primary" href="{:U('Excel/exportClassStudent?class='.$_aClass)}" >导出学生名册Excel</a>
	        </div><br/>
        </div>
        <!-- 表单按钮end -->
          
      <!-- 数据列表start -->

         <div class="right_box">
         <div class="heading">
		    <div class="title"><h3><strong>&nbsp; &nbsp; 学生选课截止日期：{:C('WCKC_SELECT_DATE_LIMIT')}</strong></h3>
		    </div>
		  </div>
        
	     <table class="table table-hover table-striped table-bordered" >
             <thead>
            <tr class="success">
        		<th class="row-selected "><input class="check-all" type="checkbox"/></th>
        		<th class="">班级</th>
                <th class="">班内编号</th>
        		<th class="">姓名</th>		
        		<th class="">性别</th>
                <th class="">选报课程</th>
                <th class="">选报时间</th>
        		<th class="">操作</th>
    		</tr>
            </thead>
            <tbody>
        	<notempty name="_list">
        		<volist name="_list" id="vo">
        		<tr>
                    <td>{$i}</td>
        			<td>{$vo.class} </td>
        			<td>{$vo.code}</td>
        			<td>{$vo.name}</td>
                    <td>{$vo.sex}</td>
                    <td>{$vo.cname}</td>		
                    <td><span><if condition="($vo.update_time eq 0)"> &nbsp <else/>
                  {$vo.update_time|date='Y-m-d',###}</if></span></td>	        			
        			<td>
        				<a href="{:U('Student/selectCourse','sid='.$vo['sid'])}" >选课</a> |        				
        				<a href="{:U('student/truncate?sid='.$vo['sid'])}" class="authorize">清除选课</a>                        
                        </td>
        		</tr>
        		</volist>
        		<else/>
        		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
        		</notempty>
        	</tbody>
            </table>        
        </div>
     <!-- 数据列表end -->
     <div class="right_box text-right"> 
      &nbsp; {:getPagination($totalPageCount,$r)}
    </div>  
   </div>

   <!--右侧内容栏end-->
   </div>

</block>

